package com.doom.a3rdlibdemo.Observer;

import android.util.Log;

public class User implements Observer {
    private static final String TAG = User.class.getSimpleName();

    private String name;
    private String message;

    public User(String name){
        this.name = name;
    }

    @Override
    public void update(Object msg) {
        this.message = (String)msg;
        Log.d(TAG, "USER name:"+ name + " recv msg:"+msg);
    }

}
